package com.hc.dfs.entities.dept;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  类说明 部门表实体类
 * </p>
 * @author 詹庆辉
 * @date 2012-11-8 下午01:58:57
 * @vesion $Revision$ $Date$ 
 */
public class Department implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1055706424326863198L;

	private Integer id;//id

    private String name;//部门名称

    private Integer pid;//父id

    private Integer left;//左边界值

    private Integer right;//有边界值

    private Integer status;//状态

    private String remark;//备注

    private Integer flag;//标志位
    
    private Integer depth = -1;//层级
    
    private List<Department> childList;//子集集合

    
    /**
	 * @return the childList
	 */
	public List<Department> getChildList() {
		return childList;
	}

	/**
	 * @param childList the childList to set
	 */
	public void setChildList(List<Department> childList) {
		this.childList = childList;
	}

	/**
	 * @return the depth
	 */
	public Integer getDepth() {
		return depth;
	}

	/**
	 * @param depth the depth to set
	 */
	public void setDepth(Integer depth) {
		this.depth = depth;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
	 * @return the pid
	 */
	public Integer getPid() {
		return pid;
	}

	/**
	 * @param pid the pid to set
	 */
	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getLeft() {
        return left;
    }

    public void setLeft(Integer left) {
        this.left = left;
    }

    public Integer getRight() {
        return right;
    }

    public void setRight(Integer right) {
        this.right = right;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }
}